package top.ytazwc.take.application;

import java.util.concurrent.TimeUnit;

/**
 * @author 花木凋零成兰
 * @title CacheService
 * @date 2024/4/28 14:36
 * @package top.ytazwc.take.application
 * @description 缓存服务接口
 */
public interface CacheService {
    String get(final String key);

    void set(String key, String value);

    void set(String key, String value, long timeout, TimeUnit timeUnit);

    void del(String key);
}
